<template>
	<view>
		<view class="topic-nav">
			<!-- 第一行 -->
			<view class="u-f-ac u-f-jsb">
				<view>热门分类</view>
				<view class="u-f-ac" @tap="opentopic">更多<view class="icon iconfont icon-jia"></view></view>
			</view>
			
			<!-- 第二行 -->
			<view class="u-f-ac">
				<block v-for="(item,index) in nav" :key="index">
						<view class="u-f-ajc">{{item.name}}</view>
				</block>
			
			
				
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props:{
			nav:Array
			
		},
		methods:{
			opentopic(){
				uni.navigateTo({
					url:"../../pages/topic-nav/topic-nav"
				})
			}
		}
	}
</script>

<style scoped>
	.topic-nav{
		border-bottom:1px solid #EEEEEE ;
		border-top: 1px solid #EEEEEE;
		padding: 20upx;
	}
	.topic-nav>view:first-child{
		margin-bottom: 15upx;
	}
	.topic-nav>view:first-child view{
		color: #B2B2B2;
	}
	.topic-nav>view:first-child>view:first-child{
		color: #333333;
		font-size: 32upx;
	}
	.topic-nav>view:last-child{
		
	}
	
	.topic-nav>view:last-child>view{
		flex:1;
		background: #DDDDDD;
		border-radius: 10upx;
		color: #999999;
		margin: 0 10upx;
		
	}
</style>
